package com.wg.dome.entity.user;


import com.wg.common.annotation.DataMember;
import com.wg.db.annotation.EntityField;
import com.wg.db.annotation.EntityTable;

import java.io.Serializable;

/**
 * 玩家
 */
@EntityTable(tableName = "user_player")
public class PlayerEntity implements Serializable {

    /**
     * 玩家唯一ID
     */
    @DataMember(code = 1)
    @EntityField(isKey = true)
    private long id;

    /**
     * 玩家名称
     */
    @DataMember(code = 2)
    @EntityField
    private String name;

    /**
     * 修为
     */
    @DataMember(code = 3)
    @EntityField
    private int xw;

    /**
     * 游戏币
     */
    @DataMember(code = 4)
    @EntityField
    private long gold;

    /**
     * 充值币
     */
    @DataMember(code = 5)
    @EntityField
    private long rmb;

    /**
     * 最后一次招募时间
     */
    @DataMember(code = 6)
    @EntityField(fieldName = "recruit_time")
    private long recruitTime;

    /**
     * 剩余多少次招募招募必出橙色以上
     */
    @DataMember(code = 7)
    @EntityField
    private int surplus;

    public PlayerEntity() {

    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getXw() {
        return xw;
    }

    public void setXw(int xw) {
        this.xw = xw;
    }

    public long getGold() {
        return gold;
    }

    public void setGold(long gold) {
        this.gold = gold;
    }

    public long getRmb() {
        return rmb;
    }

    public void setRmb(long rmb) {
        this.rmb = rmb;
    }

    public long getRecruitTime() {
        return recruitTime;
    }

    public void setRecruitTime(long recruitTime) {
        this.recruitTime = recruitTime;
    }

    public int getSurplus() {
        return surplus;
    }

    public void setSurplus(int surplus) {
        this.surplus = surplus;
    }
}
